<?php
// 检测PHP环境
if(version_compare(PHP_VERSION,'5.3.0','<'))  die('require PHP > 5.3.0 !');
//动态关闭magic_quotes_gpc
if (ini_get('magic_quotes_gpc')) {
	function stripslashesRecursive(array $array)
	{
		foreach ($array as $k => $v) {
			if (is_string($v)) {
				$array[$k] = stripslashes($v);
			} else if (is_array($v)) {
				$array[$k] = stripslashesRecursive($v);
			}
		}
		return $array;
	}

	$_GET = stripslashesRecursive($_GET);
	$_POST = stripslashesRecursive($_POST);
}
define('APP_DEBUG',True);

define('APP_PATH','./Application/');

require './ThinkPHP/ThinkPHP.php';

